<?php
namespace ZfcUser\Model;

class Tcities
{
	public $city_id;
	public $city_name;	
	public $state_id;
	public $country_id;
	public $status;		
	public function exchangeArray($data)
	{
		$this->city_id     		= (isset($data['city_id']))     		? $data['city_id']     	    : null;
		$this->city_name   	    = (isset($data['city_name'])) 		    ? $data['city_name'] 	    : null;
		$this->state_id     	= (isset($data['state_id']))     		? $data['state_id']     	: null;
		$this->country_id     	= (isset($data['country_id']))     		? $data['country_id']     	: null;
        $this->status   	    = (isset($data['status'])) 		        ? $data['status'] 	        : null;
	}
	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}

}